import request from '@/utils/request'

/*
 * 获取文章列表
 * */
export function getArticleList(data) {
  return request({
    url: '/api/article/lists',
    method: 'post',
    data:data,
    power: false
  })
}
 /*
  * 获取文章列详情
  * */
 export function getArticleDetails(data) {
   return request({
     url: '/api/article/getDetails',
     method: 'get',
    data:data,
     power: false
   })
 }
 /*
  * 获取单页详情
  * */
 export function getPageDetails(data) {
   return request({
     url: '/page/getPageDetails',
     method: 'get',
    data:data,
     power: false
   })
 }
 /*
  * 获取文章点赞
  * */
 export function zanArt(data) {
   return request({
     url: '/api/article/zanArt',
     method: 'post',
    data:data,
     power: true
   })
 }
 /*
  * 获取文章收藏
  * */
 export function collectionArt(data) {
   return request({
     url: '/api/article/collectionArt',
     method: 'post',
    data:data,
     power: true
   })
 }
 /*
  * 获取文章评论
  * */
 export function commentArt(data) {
   return request({
     url: '/api/article/commentArt',
     method: 'post',
    data:data,
     power: true
   })
 }